package br.com.rafaelSys.importacao.entidades;

import java.text.SimpleDateFormat;
import java.util.Date;

public class AtivoSerie {

	private Ativo ativo; 

	private Date data;
	private Double open;
	private Double high;
	private Double low;
	private Double close;
	private Long volume;
	private Double adj;
	
	
	public AtivoSerie(Ativo ativo, Date data, Double open, Double high,
			Double low, Double close, Long volume, Double adj) {
		this.ativo = ativo;
		this.data = data;
		this.open = open;
		this.high = high;
		this.low = low;
		this.close = close;
		this.volume = volume;
		this.adj = adj;
	}
	
	public Ativo getAtivo() {
		return ativo;
	}
	public void setAtivo(Ativo ativo) {
		this.ativo = ativo;
	}
	public Date getData() {
		return data;
	}
	public void setData(Date data) {
		this.data = data;
	}
	public Double getOpen() {
		return open;
	}
	public void setOpen(Double open) {
		this.open = open;
	}
	public Double getHigh() {
		return high;
	}
	public void setHigh(Double high) {
		this.high = high;
	}
	public Double getLow() {
		return low;
	}
	public void setLow(Double low) {
		this.low = low;
	}
	public Double getClose() {
		return close;
	}
	public void setClose(Double close) {
		this.close = close;
	}
	public Long getVolume() {
		return volume;
	}
	public void setVolume(Long volume) {
		this.volume = volume;
	}
	public Double getAdj() {
		return adj;
	}
	public void setAdj(Double adj) {
		this.adj = adj;
	}
	
	@Override
	public String toString() {
		SimpleDateFormat df = new SimpleDateFormat("yyyy-mm-dd");
		return ativo + "\t" + df.format(data) + "\t" + high + "\t" + low + "\t" + close + "\t" + volume + "\t" + adj;
	}
	
	
}
